
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>TypeScript 2.4 · TypeScript Handbook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Patrick Zhong">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="TypeScript 2.3.html" />
    
    
    <link rel="prev" href="TypeScript 2.5.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../handbook/tutorials/">
            
                <a href="../handbook/tutorials/">
            
                    
                    快速上手
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../handbook/tutorials/TypeScript in 5 minutes.html">
            
                <a href="../handbook/tutorials/TypeScript in 5 minutes.html">
            
                    
                    5分钟了解TypeScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../handbook/tutorials/ASP.NET Core.html">
            
                <a href="../handbook/tutorials/ASP.NET Core.html">
            
                    
                    ASP.NET Core
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../handbook/tutorials/ASP.NET 4.html">
            
                <a href="../handbook/tutorials/ASP.NET 4.html">
            
                    
                    ASP.NET 4
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../handbook/tutorials/Gulp.html">
            
                <a href="../handbook/tutorials/Gulp.html">
            
                    
                    Gulp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../handbook/tutorials/Knockout.html">
            
                <a href="../handbook/tutorials/Knockout.html">
            
                    
                    Knockout.js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../handbook/tutorials/React & Webpack.html">
            
                <a href="../handbook/tutorials/React & Webpack.html">
            
                    
                    React与webpack
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../handbook/tutorials/React.html">
            
                <a href="../handbook/tutorials/React.html">
            
                    
                    React
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="../handbook/tutorials/Angular 2.html">
            
                <a href="../handbook/tutorials/Angular 2.html">
            
                    
                    Angular 2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="../handbook/tutorials/Migrating from JavaScript.html">
            
                <a href="../handbook/tutorials/Migrating from JavaScript.html">
            
                    
                    从JavaScript迁移到TypeScript
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../handbook/">
            
                <a href="../handbook/">
            
                    
                    手册
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../handbook/Basic Types.html">
            
                <a href="../handbook/Basic Types.html">
            
                    
                    基础类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../handbook/Variable Declarations.html">
            
                <a href="../handbook/Variable Declarations.html">
            
                    
                    变量声明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../handbook/Interfaces.html">
            
                <a href="../handbook/Interfaces.html">
            
                    
                    接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../handbook/Classes.html">
            
                <a href="../handbook/Classes.html">
            
                    
                    类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../handbook/Functions.html">
            
                <a href="../handbook/Functions.html">
            
                    
                    函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../handbook/Generics.html">
            
                <a href="../handbook/Generics.html">
            
                    
                    泛型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../handbook/Enums.html">
            
                <a href="../handbook/Enums.html">
            
                    
                    枚举
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../handbook/Type Inference.html">
            
                <a href="../handbook/Type Inference.html">
            
                    
                    类型推论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../handbook/Type Compatibility.html">
            
                <a href="../handbook/Type Compatibility.html">
            
                    
                    类型兼容性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="../handbook/Advanced Types.html">
            
                <a href="../handbook/Advanced Types.html">
            
                    
                    高级类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="../handbook/Utilit Types.md">
            
                <span>
            
                    
                    实用工具类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12" data-path="../handbook/Symbols.html">
            
                <a href="../handbook/Symbols.html">
            
                    
                    Symbols
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13" data-path="../handbook/Iterators and Generators.html">
            
                <a href="../handbook/Iterators and Generators.html">
            
                    
                    Iterators 和 Generators
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14" data-path="../handbook/Modules.html">
            
                <a href="../handbook/Modules.html">
            
                    
                    模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.15" data-path="../handbook/Namespaces.html">
            
                <a href="../handbook/Namespaces.html">
            
                    
                    命名空间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.16" data-path="../handbook/Namespaces and Modules.html">
            
                <a href="../handbook/Namespaces and Modules.html">
            
                    
                    命名空间和模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.17" data-path="../handbook/Module Resolution.html">
            
                <a href="../handbook/Module Resolution.html">
            
                    
                    模块解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.18" data-path="../handbook/Declaration Merging.html">
            
                <a href="../handbook/Declaration Merging.html">
            
                    
                    声明合并
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.19" data-path="../handbook/Writing Definition Files.html">
            
                <a href="../handbook/Writing Definition Files.html">
            
                    
                    书写.d.ts文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.20" data-path="../handbook/JSX.html">
            
                <a href="../handbook/JSX.html">
            
                    
                    JSX
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.21" data-path="../handbook/Decorators.html">
            
                <a href="../handbook/Decorators.html">
            
                    
                    Decorators
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.22" data-path="../handbook/Mixins.html">
            
                <a href="../handbook/Mixins.html">
            
                    
                    混入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.23" data-path="../handbook/Triple-Slash Directives.html">
            
                <a href="../handbook/Triple-Slash Directives.html">
            
                    
                    三斜线指令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.24" data-path="../handbook/Type Checking JavaScript Files.html">
            
                <a href="../handbook/Type Checking JavaScript Files.html">
            
                    
                    JavaScript文件里的类型检查
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../handbook/declaration files/Introduction.html">
            
                <a href="../handbook/declaration files/Introduction.html">
            
                    
                    如何书写声明文件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../handbook/declaration files/Library Structures.html">
            
                <a href="../handbook/declaration files/Library Structures.html">
            
                    
                    结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../handbook/declaration files/Do's and Don'ts.html">
            
                <a href="../handbook/declaration files/Do's and Don'ts.html">
            
                    
                    规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../handbook/declaration files/By Example.html">
            
                <a href="../handbook/declaration files/By Example.html">
            
                    
                    举例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../handbook/declaration files/Deep Dive.html">
            
                <a href="../handbook/declaration files/Deep Dive.html">
            
                    
                    深入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../handbook/declaration files/Publishing.html">
            
                <a href="../handbook/declaration files/Publishing.html">
            
                    
                    发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../handbook/declaration files/Consumption.html">
            
                <a href="../handbook/declaration files/Consumption.html">
            
                    
                    使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../handbook/tsconfig.json.html">
            
                <a href="../handbook/tsconfig.json.html">
            
                    
                    工程配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../handbook/tsconfig.json.html">
            
                <a href="../handbook/tsconfig.json.html">
            
                    
                    tsconfig.json
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../handbook/Project References.html">
            
                <a href="../handbook/Project References.html">
            
                    
                    工程引用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../handbook/Typings for NPM Packages.html">
            
                <a href="../handbook/Typings for NPM Packages.html">
            
                    
                    NPM包的类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../handbook/Compiler Options.html">
            
                <a href="../handbook/Compiler Options.html">
            
                    
                    编译选项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../handbook/Configuring Watch.html">
            
                <a href="../handbook/Configuring Watch.html">
            
                    
                    配置 Watch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../handbook/Compiler Options in MSBuild.html">
            
                <a href="../handbook/Compiler Options in MSBuild.html">
            
                    
                    在MSBuild里使用编译选项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../handbook/Integrating with Build Tools.html">
            
                <a href="../handbook/Integrating with Build Tools.html">
            
                    
                    与其它构建工具整合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../handbook/Nightly Builds.html">
            
                <a href="../handbook/Nightly Builds.html">
            
                    
                    使用TypeScript的每日构建版本
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../wiki/">
            
                <a href="../wiki/">
            
                    
                    Wiki
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../wiki/this-in-TypeScript.html">
            
                <a href="../wiki/this-in-TypeScript.html">
            
                    
                    TypeScript里的this
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../wiki/coding_guidelines.html">
            
                <a href="../wiki/coding_guidelines.html">
            
                    
                    编码规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../wiki/Common Errors.html">
            
                <a href="../wiki/Common Errors.html">
            
                    
                    常见编译错误
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../wiki/TypeScript-Editor-Support.html">
            
                <a href="../wiki/TypeScript-Editor-Support.html">
            
                    
                    支持TypeScript的编辑器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../wiki/Using-TypeScript-With-ASP.NET-5.html">
            
                <a href="../wiki/Using-TypeScript-With-ASP.NET-5.html">
            
                    
                    结合ASP.NET v5使用TypeScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../wiki/Architectural-Overview.html">
            
                <a href="../wiki/Architectural-Overview.html">
            
                    
                    架构概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../wiki/Roadmap.html">
            
                <a href="../wiki/Roadmap.html">
            
                    
                    发展路线图
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="./">
            
                <a href="./">
            
                    
                    新增功能
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="TypeScript 3.1.html">
            
                <a href="TypeScript 3.1.html">
            
                    
                    TypeScript 3.1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="TypeScript 3.0.html">
            
                <a href="TypeScript 3.0.html">
            
                    
                    TypeScript 3.0
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="TypeScript 2.9.html">
            
                <a href="TypeScript 2.9.html">
            
                    
                    TypeScript 2.9
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="TypeScript 2.8.html">
            
                <a href="TypeScript 2.8.html">
            
                    
                    TypeScript 2.8
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="TypeScript 2.7.html">
            
                <a href="TypeScript 2.7.html">
            
                    
                    TypeScript 2.7
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="TypeScript 2.6.html">
            
                <a href="TypeScript 2.6.html">
            
                    
                    TypeScript 2.6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="TypeScript 2.5.html">
            
                <a href="TypeScript 2.5.html">
            
                    
                    TypeScript 2.5
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.7.8" data-path="TypeScript 2.4.html">
            
                <a href="TypeScript 2.4.html">
            
                    
                    TypeScript 2.4
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.9" data-path="TypeScript 2.3.html">
            
                <a href="TypeScript 2.3.html">
            
                    
                    TypeScript 2.3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.10" data-path="TypeScript 2.2.html">
            
                <a href="TypeScript 2.2.html">
            
                    
                    TypeScript 2.2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.11" data-path="TypeScript 2.1.html">
            
                <a href="TypeScript 2.1.html">
            
                    
                    TypeScript 2.1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.12" data-path="TypeScript 2.0.html">
            
                <a href="TypeScript 2.0.html">
            
                    
                    TypeScript 2.0
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.13" data-path="TypeScript 1.8.html">
            
                <a href="TypeScript 1.8.html">
            
                    
                    TypeScript 1.8
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.14" data-path="TypeScript 1.7.html">
            
                <a href="TypeScript 1.7.html">
            
                    
                    TypeScript 1.7
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.15" data-path="TypeScript 1.6.html">
            
                <a href="TypeScript 1.6.html">
            
                    
                    TypeScript 1.6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.16" data-path="TypeScript 1.5.html">
            
                <a href="TypeScript 1.5.html">
            
                    
                    TypeScript 1.5
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.17" data-path="TypeScript 1.4.html">
            
                <a href="TypeScript 1.4.html">
            
                    
                    TypeScript 1.4
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.18" data-path="TypeScript 1.3.html">
            
                <a href="TypeScript 1.3.html">
            
                    
                    TypeScript 1.3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.19" data-path="TypeScript 1.1.html">
            
                <a href="TypeScript 1.1.html">
            
                    
                    TypeScript 1.1
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../breaking-changes/breaking-changes.html">
            
                <a href="../breaking-changes/breaking-changes.html">
            
                    
                    Breaking Changes
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../breaking-changes/TypeScript 2.4.html">
            
                <a href="../breaking-changes/TypeScript 2.4.html">
            
                    
                    TypeScript 2.4
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../breaking-changes/TypeScript 2.3.html">
            
                <a href="../breaking-changes/TypeScript 2.3.html">
            
                    
                    TypeScript 2.3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../breaking-changes/TypeScript 2.2.html">
            
                <a href="../breaking-changes/TypeScript 2.2.html">
            
                    
                    TypeScript 2.2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../breaking-changes/TypeScript 2.1.html">
            
                <a href="../breaking-changes/TypeScript 2.1.html">
            
                    
                    TypeScript 2.1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../breaking-changes/TypeScript 2.0.html">
            
                <a href="../breaking-changes/TypeScript 2.0.html">
            
                    
                    TypeScript 2.0
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.6" data-path="../breaking-changes/TypeScript 1.8.html">
            
                <a href="../breaking-changes/TypeScript 1.8.html">
            
                    
                    TypeScript 1.8
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.7" data-path="../breaking-changes/TypeScript 1.7.html">
            
                <a href="../breaking-changes/TypeScript 1.7.html">
            
                    
                    TypeScript 1.7
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.8" data-path="../breaking-changes/TypeScript 1.6.html">
            
                <a href="../breaking-changes/TypeScript 1.6.html">
            
                    
                    TypeScript 1.6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.9" data-path="../breaking-changes/TypeScript 1.5.html">
            
                <a href="../breaking-changes/TypeScript 1.5.html">
            
                    
                    TypeScript 1.5
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.10" data-path="../breaking-changes/TypeScript 1.4.html">
            
                <a href="../breaking-changes/TypeScript 1.4.html">
            
                    
                    TypeScript 1.4
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >TypeScript 2.4</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="typescript-24">TypeScript 2.4</h1>
<h2 id="&#x52A8;&#x6001;&#x5BFC;&#x5165;&#x8868;&#x8FBE;&#x5F0F;">&#x52A8;&#x6001;&#x5BFC;&#x5165;&#x8868;&#x8FBE;&#x5F0F;</h2>
<p>&#x52A8;&#x6001;&#x7684;<code>import</code>&#x8868;&#x8FBE;&#x5F0F;&#x662F;&#x4E00;&#x4E2A;&#x65B0;&#x7279;&#x6027;&#xFF0C;&#x5B83;&#x5C5E;&#x4E8E;ECMAScript&#x7684;&#x4E00;&#x90E8;&#x5206;&#xFF0C;&#x5141;&#x8BB8;&#x7528;&#x6237;&#x5728;&#x7A0B;&#x5E8F;&#x7684;&#x4EFB;&#x4F55;&#x4F4D;&#x7F6E;&#x5F02;&#x6B65;&#x5730;&#x8BF7;&#x6C42;&#x67D0;&#x4E2A;&#x6A21;&#x5757;&#x3002;</p>
<p>&#x8FD9;&#x610F;&#x5473;&#x7740;&#x4F60;&#x53EF;&#x4EE5;&#x6709;&#x6761;&#x4EF6;&#x5730;&#x5EF6;&#x8FDF;&#x52A0;&#x8F7D;&#x5176;&#x5B83;&#x6A21;&#x5757;&#x548C;&#x5E93;&#x3002;
&#x4F8B;&#x5982;&#x4E0B;&#x9762;&#x8FD9;&#x4E2A;<code>async</code>&#x51FD;&#x6570;&#xFF0C;&#x5B83;&#x4EC5;&#x5728;&#x9700;&#x8981;&#x7684;&#x65F6;&#x5019;&#x624D;&#x5BFC;&#x5165;&#x5DE5;&#x5177;&#x5E93;&#xFF1A;</p>
<pre><code class="lang-ts">async <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">getZipFile</span>(<span class="hljs-params">name: <span class="hljs-built_in">string</span>, files: File[]</span>): <span class="hljs-title">Promise</span>&lt;<span class="hljs-title">File</span>&gt; </span>{
    <span class="hljs-keyword">const</span> zipUtil = await <span class="hljs-keyword">import</span>(<span class="hljs-string">&apos;./utils/create-zip-file&apos;</span>);
    <span class="hljs-keyword">const</span> zipContents = await zipUtil.getContentAsBlob(files);
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> File(zipContents, name);
}
</code></pre>
<p>&#x8BB8;&#x591A;bundlers&#x5DE5;&#x5177;&#x5DF2;&#x7ECF;&#x652F;&#x6301;&#x4F9D;&#x7167;&#x8FD9;&#x4E9B;<code>import</code>&#x8868;&#x8FBE;&#x5F0F;&#x81EA;&#x52A8;&#x5730;&#x5206;&#x5272;&#x8F93;&#x51FA;&#xFF0C;&#x56E0;&#x6B64;&#x53EF;&#x4EE5;&#x8003;&#x8651;&#x4F7F;&#x7528;&#x8FD9;&#x4E2A;&#x65B0;&#x7279;&#x6027;&#x5E76;&#x628A;&#x8F93;&#x51FA;&#x6A21;&#x5757;&#x76EE;&#x6807;&#x8BBE;&#x7F6E;&#x4E3A;<code>esnext</code>&#x3002;</p>
<h2 id="&#x5B57;&#x7B26;&#x4E32;&#x679A;&#x4E3E;">&#x5B57;&#x7B26;&#x4E32;&#x679A;&#x4E3E;</h2>
<p>TypeScript 2.4&#x73B0;&#x5728;&#x652F;&#x6301;&#x679A;&#x4E3E;&#x6210;&#x5458;&#x53D8;&#x91CF;&#x5305;&#x542B;&#x5B57;&#x7B26;&#x4E32;&#x6784;&#x9020;&#x5668;&#x3002;</p>
<pre><code class="lang-ts"><span class="hljs-keyword">enum</span> Colors {
    Red = <span class="hljs-string">&quot;RED&quot;</span>,
    Green = <span class="hljs-string">&quot;GREEN&quot;</span>,
    Blue = <span class="hljs-string">&quot;BLUE&quot;</span>,
}
</code></pre>
<p>&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;&#x5B57;&#x7B26;&#x4E32;&#x679A;&#x4E3E;&#x6210;&#x5458;&#x4E0D;&#x80FD;&#x88AB;&#x53CD;&#x5411;&#x6620;&#x5C04;&#x5230;&#x679A;&#x4E3E;&#x6210;&#x5458;&#x7684;&#x540D;&#x5B57;&#x3002;
&#x6362;&#x53E5;&#x8BDD;&#x8BF4;&#xFF0C;&#x4F60;&#x4E0D;&#x80FD;&#x4F7F;&#x7528;<code>Colors[&quot;RED&quot;]</code>&#x6765;&#x5F97;&#x5230;<code>&quot;Red&quot;</code>&#x3002;</p>
<h2 id="&#x589E;&#x5F3A;&#x7684;&#x6CDB;&#x578B;&#x63A8;&#x65AD;">&#x589E;&#x5F3A;&#x7684;&#x6CDB;&#x578B;&#x63A8;&#x65AD;</h2>
<p>TypeScript 2.4&#x56F4;&#x7ED5;&#x7740;&#x6CDB;&#x578B;&#x7684;&#x63A8;&#x65AD;&#x65B9;&#x5F0F;&#x5F15;&#x5165;&#x4E86;&#x4E00;&#x4E9B;&#x5F88;&#x68D2;&#x7684;&#x6539;&#x53D8;&#x3002;</p>
<h3 id="&#x8FD4;&#x56DE;&#x7C7B;&#x578B;&#x4F5C;&#x4E3A;&#x63A8;&#x65AD;&#x76EE;&#x6807;">&#x8FD4;&#x56DE;&#x7C7B;&#x578B;&#x4F5C;&#x4E3A;&#x63A8;&#x65AD;&#x76EE;&#x6807;</h3>
<p>&#x5176;&#x4E00;&#xFF0C;TypeScript&#x80FD;&#x591F;&#x63A8;&#x65AD;&#x8C03;&#x7528;&#x7684;&#x8FD4;&#x56DE;&#x503C;&#x7C7B;&#x578B;&#x3002;
&#x8FD9;&#x53EF;&#x4EE5;&#x4F18;&#x5316;&#x4F60;&#x7684;&#x4F53;&#x9A8C;&#x548C;&#x65B9;&#x4FBF;&#x6355;&#x83B7;&#x9519;&#x8BEF;&#x3002;
&#x5982;&#x4E0B;&#x6240;&#x793A;&#xFF1A;</p>
<pre><code class="lang-ts">function arrayMap&lt;T, U&gt;(f: (x: T) =&gt; U): (a: T[]) =&gt; U[] {
    return a =&gt; a.map(f);
}

const lengths: (a: string[]) =&gt; number[] = arrayMap(s =&gt; s.length);
</code></pre>
<p>&#x4E0B;&#x9762;&#x662F;&#x4E00;&#x4E2A;&#x4F60;&#x53EF;&#x80FD;&#x4F1A;&#x89C1;&#x5230;&#x7684;&#x51FA;&#x9519;&#x4E86;&#x7684;&#x4F8B;&#x5B50;&#xFF1A;</p>
<pre><code class="lang-ts"><span class="hljs-keyword">let</span> x: Promise&lt;<span class="hljs-built_in">string</span>&gt; = <span class="hljs-keyword">new</span> Promise(resolve =&gt; {
    resolve(<span class="hljs-number">10</span>);
    <span class="hljs-comment">//      ~~ Error!</span>
});
</code></pre>
<h3 id="&#x4ECE;&#x4E0A;&#x4E0B;&#x6587;&#x7C7B;&#x578B;&#x4E2D;&#x63A8;&#x65AD;&#x7C7B;&#x578B;&#x53C2;&#x6570;">&#x4ECE;&#x4E0A;&#x4E0B;&#x6587;&#x7C7B;&#x578B;&#x4E2D;&#x63A8;&#x65AD;&#x7C7B;&#x578B;&#x53C2;&#x6570;</h3>
<p>&#x5728;TypeScript 2.4&#x4E4B;&#x524D;&#xFF0C;&#x5728;&#x4E0B;&#x9762;&#x7684;&#x4F8B;&#x5B50;&#x91CC;&#xFF1A;</p>
<pre><code class="lang-ts"><span class="hljs-keyword">let</span> f: &lt;T&gt;(x: T) =&gt; T = y =&gt; y;
</code></pre>
<p><code>y</code>&#x5C06;&#x4F1A;&#x5177;&#x6709;<code>any</code>&#x7C7B;&#x578B;&#x3002;
&#x8FD9;&#x610F;&#x5473;&#x7740;&#x867D;&#x7136;&#x7A0B;&#x5E8F;&#x4F1A;&#x68C0;&#x67E5;&#x7C7B;&#x578B;&#xFF0C;&#x4F46;&#x662F;&#x4F60;&#x5374;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<code>y</code>&#x505A;&#x4EFB;&#x4F55;&#x4E8B;&#x60C5;&#xFF0C;&#x5C31;&#x6BD4;&#x5982;&#xFF1A;</p>
<pre><code class="lang-ts"><span class="hljs-keyword">let</span> f: &lt;T&gt;(x: T) =&gt; T = y =&gt; y() + y.foo.bar;
</code></pre>
<p>&#x8FD9;&#x4E2A;&#x4F8B;&#x5B50;&#x5B9E;&#x9645;&#x4E0A;&#x5E76;&#x4E0D;&#x662F;&#x7C7B;&#x578B;&#x5B89;&#x5168;&#x7684;&#x3002;</p>
<p>&#x5728;TypeScript 2.4&#x91CC;&#xFF0C;&#x53F3;&#x624B;&#x8FB9;&#x7684;&#x51FD;&#x6570;&#x4F1A;&#x9690;&#x5F0F;&#x5730;&#x83B7;&#x5F97;&#x7C7B;&#x578B;&#x53C2;&#x6570;&#xFF0C;&#x5E76;&#x4E14;<code>y</code>&#x7684;&#x7C7B;&#x578B;&#x4F1A;&#x88AB;&#x63A8;&#x65AD;&#x4E3A;&#x90A3;&#x4E2A;&#x7C7B;&#x578B;&#x53C2;&#x6570;&#x7684;&#x7C7B;&#x578B;&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x4F7F;&#x7528;<code>y</code>&#x7684;&#x65B9;&#x5F0F;&#x662F;&#x8FD9;&#x4E2A;&#x7C7B;&#x578B;&#x53C2;&#x6570;&#x6240;&#x4E0D;&#x652F;&#x6301;&#x7684;&#xFF0C;&#x90A3;&#x4E48;&#x4F60;&#x4F1A;&#x5F97;&#x5230;&#x4E00;&#x4E2A;&#x9519;&#x8BEF;&#x3002;
&#x5728;&#x8FD9;&#x4E2A;&#x4F8B;&#x5B50;&#x91CC;&#xFF0C;<code>T</code>&#x7684;&#x7EA6;&#x675F;&#x662F;<code>{}</code>&#xFF08;&#x9690;&#x5F0F;&#x5730;&#xFF09;&#xFF0C;&#x6240;&#x4EE5;&#x5728;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x4F8B;&#x5B50;&#x91CC;&#x4F1A;&#x51FA;&#x9519;&#x3002;</p>
<h3 id="&#x5BF9;&#x6CDB;&#x578B;&#x51FD;&#x6570;&#x8FDB;&#x884C;&#x66F4;&#x4E25;&#x683C;&#x7684;&#x68C0;&#x67E5;">&#x5BF9;&#x6CDB;&#x578B;&#x51FD;&#x6570;&#x8FDB;&#x884C;&#x66F4;&#x4E25;&#x683C;&#x7684;&#x68C0;&#x67E5;</h3>
<p>TypeScript&#x5728;&#x6BD4;&#x8F83;&#x4E24;&#x4E2A;&#x5355;&#x4E00;&#x7B7E;&#x540D;&#x7684;&#x7C7B;&#x578B;&#x65F6;&#x4F1A;&#x5C1D;&#x8BD5;&#x7EDF;&#x4E00;&#x7C7B;&#x578B;&#x53C2;&#x6570;&#x3002;
&#x56E0;&#x6B64;&#xFF0C;&#x5728;&#x6D89;&#x53CA;&#x5230;&#x4E24;&#x4E2A;&#x6CDB;&#x578B;&#x7B7E;&#x540D;&#x7684;&#x65F6;&#x5019;&#x4F1A;&#x8FDB;&#x884C;&#x66F4;&#x4E25;&#x683C;&#x7684;&#x68C0;&#x67E5;&#xFF0C;&#x8FD9;&#x5C31;&#x53EF;&#x80FD;&#x53D1;&#x73B0;&#x4E00;&#x4E9B;bugs&#x3002;</p>
<pre><code class="lang-ts"><span class="hljs-keyword">type</span> A = &lt;T, U&gt;(x: T, y: U) =&gt; [T, U];
<span class="hljs-keyword">type</span> B = &lt;S&gt;(x: S, y: S) =&gt; [S, S];

<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">f</span>(<span class="hljs-params">a: A, b: B</span>) </span>{
    a = b;  <span class="hljs-comment">// Error</span>
    b = a;  <span class="hljs-comment">// Ok</span>
}
</code></pre>
<h2 id="&#x56DE;&#x8C03;&#x53C2;&#x6570;&#x7684;&#x4E25;&#x683C;&#x6297;&#x53D8;">&#x56DE;&#x8C03;&#x53C2;&#x6570;&#x7684;&#x4E25;&#x683C;&#x6297;&#x53D8;</h2>
<p>TypeScript&#x4E00;&#x76F4;&#x662F;&#x4EE5;&#x53CC;&#x53D8;&#xFF08;bivariant&#xFF09;&#x7684;&#x65B9;&#x5F0F;&#x6765;&#x6BD4;&#x8F83;&#x53C2;&#x6570;&#x3002;
&#x8FD9;&#x6837;&#x505A;&#x6709;&#x5F88;&#x591A;&#x539F;&#x56E0;&#xFF0C;&#x603B;&#x4F53;&#x4E0A;&#x6765;&#x8BF4;&#x8FD9;&#x4E0D;&#x4F1A;&#x6709;&#x4EC0;&#x4E48;&#x5927;&#x95EE;&#x9898;&#x76F4;&#x5230;&#x6211;&#x4EEC;&#x53D1;&#x73B0;&#x5B83;&#x5E94;&#x7528;&#x5728;<code>Promise</code>&#x548C;<code>Observable</code>&#x4E0A;&#x65F6;&#x6709;&#x4E9B;&#x526F;&#x4F5C;&#x7528;&#x3002;</p>
<p>TypeScript 2.4&#x5728;&#x5904;&#x7406;&#x4E24;&#x4E2A;&#x56DE;&#x8C03;&#x7C7B;&#x578B;&#x65F6;&#x5F15;&#x5165;&#x4E86;&#x6536;&#x7D27;&#x673A;&#x5236;&#x3002;&#x4F8B;&#x5982;&#xFF1A;</p>
<pre><code class="lang-ts"><span class="hljs-keyword">interface</span> Mappable&lt;T&gt; {
    map&lt;U&gt;(f: (x: T) =&gt; U): Mappable&lt;U&gt;;
}

<span class="hljs-keyword">declare</span> <span class="hljs-keyword">let</span> a: Mappable&lt;<span class="hljs-built_in">number</span>&gt;;
<span class="hljs-keyword">declare</span> <span class="hljs-keyword">let</span> b: Mappable&lt;<span class="hljs-built_in">string</span> | <span class="hljs-built_in">number</span>&gt;;

a = b;
b = a;
</code></pre>
<p>&#x5728;TypeScript 2.4&#x4E4B;&#x524D;&#xFF0C;&#x5B83;&#x4F1A;&#x6210;&#x529F;&#x6267;&#x884C;&#x3002;
&#x5F53;&#x5173;&#x8054;<code>map</code>&#x7684;&#x7C7B;&#x578B;&#x65F6;&#xFF0C;TypeScript&#x4F1A;&#x53CC;&#x5411;&#x5730;&#x5173;&#x8054;&#x5B83;&#x4EEC;&#x7684;&#x7C7B;&#x578B;&#xFF08;&#x4F8B;&#x5982;<code>f</code>&#x7684;&#x7C7B;&#x578B;&#xFF09;&#x3002;
&#x5F53;&#x5173;&#x8054;&#x6BCF;&#x4E2A;<code>f</code>&#x7684;&#x7C7B;&#x578B;&#x65F6;&#xFF0C;TypeScript&#x4E5F;&#x4F1A;&#x53CC;&#x5411;&#x5730;&#x5173;&#x8054;&#x90A3;&#x4E9B;&#x53C2;&#x6570;&#x7684;&#x7C7B;&#x578B;&#x3002;</p>
<p>TS 2.4&#x91CC;&#x5173;&#x8054;<code>map</code>&#x7684;&#x7C7B;&#x578B;&#x65F6;&#xFF0C;TypeScript&#x4F1A;&#x68C0;&#x67E5;&#x662F;&#x5426;&#x6BCF;&#x4E2A;&#x53C2;&#x6570;&#x90FD;&#x662F;&#x56DE;&#x8C03;&#x7C7B;&#x578B;&#xFF0C;&#x5982;&#x679C;&#x662F;&#x7684;&#x8BDD;&#xFF0C;&#x5B83;&#x4F1A;&#x786E;&#x4FDD;&#x90A3;&#x4E9B;&#x53C2;&#x6570;&#x6839;&#x636E;&#x5B83;&#x6240;&#x5728;&#x7684;&#x4F4D;&#x7F6E;&#x4EE5;&#x6297;&#x53D8;&#xFF08;contravariant&#xFF09;&#x5730;&#x65B9;&#x5F0F;&#x8FDB;&#x884C;&#x68C0;&#x67E5;&#x3002;</p>
<p>&#x6362;&#x53E5;&#x8BDD;&#x8BF4;&#xFF0C;TypeScript&#x73B0;&#x5728;&#x53EF;&#x4EE5;&#x6355;&#x83B7;&#x4E0A;&#x9762;&#x7684;bug&#xFF0C;&#x8FD9;&#x5BF9;&#x67D0;&#x4E9B;&#x7528;&#x6237;&#x6765;&#x8BF4;&#x53EF;&#x80FD;&#x662F;&#x4E00;&#x4E2A;&#x7834;&#x574F;&#x6027;&#x6539;&#x52A8;&#xFF0C;&#x4F46;&#x5374;&#x662F;&#x975E;&#x5E38;&#x5E2E;&#x52A9;&#x7684;&#x3002;</p>
<h2 id="&#x5F31;&#x7C7B;&#x578B;&#xFF08;weak-type&#xFF09;&#x63A2;&#x6D4B;">&#x5F31;&#x7C7B;&#x578B;&#xFF08;Weak Type&#xFF09;&#x63A2;&#x6D4B;</h2>
<p>TypeScript 2.4&#x5F15;&#x5165;&#x4E86;&#x201C;&#x5F31;&#x7C7B;&#x578B;&#x201D;&#x7684;&#x6982;&#x5FF5;&#x3002;
&#x4EFB;&#x4F55;&#x53EA;&#x5305;&#x542B;&#x4E86;&#x53EF;&#x9009;&#x5C5E;&#x6027;&#x7684;&#x7C7B;&#x578B;&#x88AB;&#x5F53;&#x4F5C;&#x662F;&#x201C;weak&#x201D;&#x3002;
&#x6BD4;&#x5982;&#xFF0C;&#x4E0B;&#x9762;&#x7684;<code>Options</code>&#x7C7B;&#x578B;&#x662F;&#x5F31;&#x7C7B;&#x578B;&#xFF1A;</p>
<pre><code class="lang-ts"><span class="hljs-keyword">interface</span> Options {
    data?: <span class="hljs-built_in">string</span>,
    timeout?: <span class="hljs-built_in">number</span>,
    maxRetries?: <span class="hljs-built_in">number</span>,
}
</code></pre>
<p>&#x5728;TypeScript 2.4&#x91CC;&#x7ED9;&#x5F31;&#x7C7B;&#x578B;&#x8D4B;&#x503C;&#x65F6;&#xFF0C;&#x5982;&#x679C;&#x8FD9;&#x4E2A;&#x503C;&#x7684;&#x5C5E;&#x6027;&#x4E0E;&#x5F31;&#x7C7B;&#x578B;&#x7684;&#x5C5E;&#x6027;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x91CD;&#x53E0;&#x5C5E;&#x6027;&#x65F6;&#x4F1A;&#x5F97;&#x5230;&#x4E00;&#x4E2A;&#x9519;&#x8BEF;&#x3002;
&#x6BD4;&#x5982;&#xFF1A;</p>
<pre><code class="lang-ts"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">sendMessage</span>(<span class="hljs-params">options: Options</span>) </span>{
    <span class="hljs-comment">// ...</span>
}

<span class="hljs-keyword">const</span> opts = {
    payload: <span class="hljs-string">&quot;hello world!&quot;</span>,
    retryOnFail: <span class="hljs-literal">true</span>,
}

<span class="hljs-comment">// &#x9519;&#x8BEF;!</span>
sendMessage(opts);
<span class="hljs-comment">// &apos;opts&apos; &#x548C; &apos;Options&apos; &#x6CA1;&#x6709;&#x91CD;&#x53E0;&#x7684;&#x5C5E;&#x6027;</span>
<span class="hljs-comment">// &#x53EF;&#x80FD;&#x6211;&#x4EEC;&#x60F3;&#x8981;&#x7528;&apos;data&apos;/&apos;maxRetries&apos;&#x6765;&#x4EE3;&#x66FF;&apos;payload&apos;/&apos;retryOnFail&apos;</span>
</code></pre>
<p>&#x56E0;&#x4E3A;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x7834;&#x574F;&#x6027;&#x6539;&#x52A8;&#xFF0C;&#x4F60;&#x53EF;&#x80FD;&#x60F3;&#x8981;&#x77E5;&#x9053;&#x4E00;&#x4E9B;&#x89E3;&#x51B3;&#x65B9;&#x6CD5;&#xFF1A;</p>
<ol>
<li>&#x786E;&#x5B9A;&#x5C5E;&#x6027;&#x5B58;&#x5728;&#x65F6;&#x518D;&#x58F0;&#x660E;</li>
<li>&#x7ED9;&#x5F31;&#x7C7B;&#x578B;&#x589E;&#x52A0;&#x7D22;&#x5F15;&#x7B7E;&#x540D;&#xFF08;&#x6BD4;&#x5982; <code>[propName: string]: {}</code>&#xFF09;</li>
<li>&#x4F7F;&#x7528;&#x7C7B;&#x578B;&#x65AD;&#x8A00;&#xFF08;&#x6BD4;&#x5982;<code>opts as Options</code>&#xFF09;</li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="TypeScript 2.5.html" class="navigation navigation-prev " aria-label="Previous page: TypeScript 2.5">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="TypeScript 2.3.html" class="navigation navigation-next " aria-label="Next page: TypeScript 2.3">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"TypeScript 2.4","level":"1.7.8","depth":2,"next":{"title":"TypeScript 2.3","level":"1.7.9","depth":2,"path":"doc/release-notes/TypeScript 2.3.md","ref":"./doc/release-notes/TypeScript 2.3.md","articles":[]},"previous":{"title":"TypeScript 2.5","level":"1.7.7","depth":2,"path":"doc/release-notes/TypeScript 2.5.md","ref":"./doc/release-notes/TypeScript 2.5.md","articles":[]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Patrick Zhong","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"preface.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"TypeScript Handbook","language":"zh-hans","gitbook":">3.0.0","description":"Translation of official TypeScript Handbook"},"file":{"path":"doc/release-notes/TypeScript 2.4.md","mtime":"2018-10-13T09:48:54.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-13T09:57:42.904Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

